package com.finance.entity;

import java.util.Date;

/**
 * 用户表
 * 
 * @author Administrator
 *
 */
public class YhUser {
	public static final int LOAN_STATE_WEIDAIKUAN = 0;
	public static final int LOAN_STATE_ZHENGCHANG = 1;
	public static final int LOAN_STATE_YIWANCHENG = 2;
	public static final int LOAN_STATE_YUQI = 3;

	/**
	 * 用户Id
	 */
	private String yhUserId;

	/**
	 * 客户名字
	 */
	private String yhUserName;
	/**
	 * 用户名
	 */
	private String userName;

	/**
	 * 用户电话
	 */
	private String yhUserPhone;

	/**
	 * 用户密码
	 */
	private String yhUserPassword;

	/**
	 * 最后登陆时间
	 */
	private Date yhLatestTime;

	/**
	 * 凭证
	 */
	private String yhUserToken;

	/**
	 * 创建时间
	 */
	private Date yhCreationTime;
	private String createTime;

	/**
	 * 用户地址
	 */
	private String yhUserAdds;

	/**
	 * 用户年龄
	 */
	private Integer yhUserAge;

	/*
	 * 用户Id
	 */
	private String userId;
	/**
	 * 身份证
	 */
	private String yhUserIdcard;
	/**
	 * 用户性别(0男1女)
	 */
	public Integer yhUserSex;
	/**
	 * 贷款状态
	 */
	private Integer loanState;

	public String getLoanStateName() {
		String name = "";
		switch (loanState) {
		case LOAN_STATE_WEIDAIKUAN:
			name = "未贷款";
			break;
		case LOAN_STATE_ZHENGCHANG:
			name = "正常";
			break;
		case LOAN_STATE_YIWANCHENG:
			name = "已完成";
			break;
		case LOAN_STATE_YUQI:
			name = "逾期";
			break;

		default:
			break;
		}
		return name;
	}

	/**
	 * 信誉评价
	 */
	private String evaluate;
	public String getEvaluateName(){
		if(evaluate == null){
			return "暂无评价";
		}
		return evaluate;
	}

	private Date oldTime;
	private Date newTime;

	/**
	 * This method was generated by MyBatis Generator. This method returns the
	 * value of the database column yh_user.yh_user_id
	 *
	 * @return the value of yh_user.yh_user_id
	 *
	 * @mbggenerated Sat Feb 10 19:52:31 CST 2018
	 */
	public String getYhUserId() {
		return yhUserId;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the
	 * value of the database column yh_user.yh_user_id
	 *
	 * @param yhUserId
	 *            the value for yh_user.yh_user_id
	 *
	 * @mbggenerated Sat Feb 10 19:52:31 CST 2018
	 */
	public void setYhUserId(String yhUserId) {
		this.yhUserId = yhUserId;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the
	 * value of the database column yh_user.yh_user_name
	 *
	 * @return the value of yh_user.yh_user_name
	 *
	 * @mbggenerated Sat Feb 10 19:52:31 CST 2018
	 */
	public String getYhUserName() {
		return yhUserName;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the
	 * value of the database column yh_user.yh_user_name
	 *
	 * @param yhUserName
	 *            the value for yh_user.yh_user_name
	 *
	 * @mbggenerated Sat Feb 10 19:52:31 CST 2018
	 */
	public void setYhUserName(String yhUserName) {
		this.yhUserName = yhUserName;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the
	 * value of the database column yh_user.yh_user_phone
	 *
	 * @return the value of yh_user.yh_user_phone
	 *
	 * @mbggenerated Sat Feb 10 19:52:31 CST 2018
	 */
	public String getYhUserPhone() {
		return yhUserPhone;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the
	 * value of the database column yh_user.yh_user_phone
	 *
	 * @param yhUserPhone
	 *            the value for yh_user.yh_user_phone
	 *
	 * @mbggenerated Sat Feb 10 19:52:31 CST 2018
	 */
	public void setYhUserPhone(String yhUserPhone) {
		this.yhUserPhone = yhUserPhone;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the
	 * value of the database column yh_user.yh_user_password
	 *
	 * @return the value of yh_user.yh_user_password
	 *
	 * @mbggenerated Sat Feb 10 19:52:31 CST 2018
	 */
	public String getYhUserPassword() {
		return yhUserPassword;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the
	 * value of the database column yh_user.yh_user_password
	 *
	 * @param yhUserPassword
	 *            the value for yh_user.yh_user_password
	 *
	 * @mbggenerated Sat Feb 10 19:52:31 CST 2018
	 */
	public void setYhUserPassword(String yhUserPassword) {
		this.yhUserPassword = yhUserPassword;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the
	 * value of the database column yh_user.yh_latest_time
	 *
	 * @return the value of yh_user.yh_latest_time
	 *
	 * @mbggenerated Sat Feb 10 19:52:31 CST 2018
	 */
	public Date getYhLatestTime() {
		return yhLatestTime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the
	 * value of the database column yh_user.yh_latest_time
	 *
	 * @param yhLatestTime
	 *            the value for yh_user.yh_latest_time
	 *
	 * @mbggenerated Sat Feb 10 19:52:31 CST 2018
	 */
	public void setYhLatestTime(Date yhLatestTime) {
		this.yhLatestTime = yhLatestTime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the
	 * value of the database column yh_user.yh_user_token
	 *
	 * @return the value of yh_user.yh_user_token
	 *
	 * @mbggenerated Sat Feb 10 19:52:31 CST 2018
	 */
	public String getYhUserToken() {
		return yhUserToken;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the
	 * value of the database column yh_user.yh_user_token
	 *
	 * @param yhUserToken
	 *            the value for yh_user.yh_user_token
	 *
	 * @mbggenerated Sat Feb 10 19:52:31 CST 2018
	 */
	public void setYhUserToken(String yhUserToken) {
		this.yhUserToken = yhUserToken;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the
	 * value of the database column yh_user.yh_creation_time
	 *
	 * @return the value of yh_user.yh_creation_time
	 *
	 * @mbggenerated Sat Feb 10 19:52:31 CST 2018
	 */
	public Date getYhCreationTime() {
		return yhCreationTime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the
	 * value of the database column yh_user.yh_creation_time
	 *
	 * @param yhCreationTime
	 *            the value for yh_user.yh_creation_time
	 *
	 * @mbggenerated Sat Feb 10 19:52:31 CST 2018
	 */
	public void setYhCreationTime(Date yhCreationTime) {
		this.yhCreationTime = yhCreationTime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the
	 * value of the database column yh_user.yh_user_adds
	 *
	 * @return the value of yh_user.yh_user_adds
	 *
	 * @mbggenerated Sat Feb 10 19:52:31 CST 2018
	 */
	public String getYhUserAdds() {
		return yhUserAdds;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the
	 * value of the database column yh_user.yh_user_adds
	 *
	 * @param yhUserAdds
	 *            the value for yh_user.yh_user_adds
	 *
	 * @mbggenerated Sat Feb 10 19:52:31 CST 2018
	 */
	public void setYhUserAdds(String yhUserAdds) {
		this.yhUserAdds = yhUserAdds;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the
	 * value of the database column yh_user.yh_user_age
	 *
	 * @return the value of yh_user.yh_user_age
	 *
	 * @mbggenerated Sat Feb 10 19:52:31 CST 2018
	 */
	public Integer getYhUserAge() {
		return yhUserAge;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the
	 * value of the database column yh_user.yh_user_age
	 *
	 * @param yhUserAge
	 *            the value for yh_user.yh_user_age
	 *
	 * @mbggenerated Sat Feb 10 19:52:31 CST 2018
	 */
	public void setYhUserAge(Integer yhUserAge) {
		this.yhUserAge = yhUserAge;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getYhUserIdcard() {
		return yhUserIdcard;
	}

	public void setYhUserIdcard(String yhUserIdcard) {
		this.yhUserIdcard = yhUserIdcard;
	}

	public Integer getYhUserSex() {
		return yhUserSex;
	}

	public void setYhUserSex(Integer yhUserSex) {
		this.yhUserSex = yhUserSex;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Date getOldTime() {
		return oldTime;
	}

	public void setOldTime(Date oldTime) {
		this.oldTime = oldTime;
	}

	public Date getNewTime() {
		return newTime;
	}

	public void setNewTime(Date newTime) {
		this.newTime = newTime;
	}

	public Integer getLoanState() {
		return loanState;
	}

	public void setLoanState(Integer loanState) {
		this.loanState = loanState;
	}

	public String getEvaluate() {
		return evaluate;
	}

	public void setEvaluate(String evaluate) {
		this.evaluate = evaluate;
	}

}